<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link type="text/css" rel="stylesheet" href="css/main.css" />
<body>
    <table class="quiz">
    <thead>
        <tr>
            <td style="width: 70%;">Definizione</td>
            <td style="width: 20%;">Parola</td>
            <td style="width: 7%;"></td>
            <td style="width: 3%;">Risultato</td>
        </tr>
    </thead>
    <tbody>
	<?php 
	   session_start();
 	   $arr =$_SESSION['test'];
       for($i=0 ; $i< count($arr); $i++) {
		  $value=$arr[$i];
          echo "<tr><td>$value->answer</td>
            <td>
            <div><input tabindex='$i' type='text' id='$value->id'  value='' /></div>
            <td><span style='visibility:hidden;' id='solution-".$value->id."'>".$value->response."</span></td>
            <td class='center' id='img-".$value->id."'></td>
            </tr>";
       }
	?>
	</tbody>
	</table>
</body>
</html>
